package test;

import server.core.Espresso;
import server.core.Houseblend;
import server.core.decorator.Mocha;
import server.core.decorator.Whip;


/**
 * describe:
 *
 * @author helloworldyu
 * @data 2018/1/4
 */
public class Main {
	public static void main(String[] args) {
		Espresso espresso = new Espresso();
		System.out.println(espresso.getDescription() + " $"+espresso.cost());

		Houseblend houseblend = new Houseblend();
		System.out.println(houseblend.getDescription() + " $"+houseblend.cost());

		Mocha mocha = new Mocha(espresso);
		Whip whip = new Whip(mocha);

		System.out.println(whip.getDescription() + " $"+whip.cost());
	}
}